package cn.jy.map.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.jy.map.domain.JzJyDz;
import cn.jy.map.mapper.JzjydzMapper;
import cn.jy.map.service.JzjyloasService;
import cn.jy.nvr.datasource.DataSourceConst;
import cn.jy.nvr.datasource.DataSourceContextHolder;
@Service("jzjyloasService")
public class JzjyloasServiceImpl implements JzjyloasService {

	
	
	@Autowired
	private JzjydzMapper jzjydzmapper;
	
	
	
	@Override
	public void addJzjydz(JzJyDz jyDz) {
		
	}

	@Override
	public List<String> getDzJwdByAddress(List<String> list) {
		
		List<String> adressList=jzjydzmapper.getAddress(list);
		
		return adressList;
	}

	@Override
	public List<String> getAddressByGjzdzwed() {
		DataSourceContextHolder.setDataSourceType(DataSourceConst.mx);
		return  jzjydzmapper.getAddressByGjzdzwed();
		
	}

	@Override
	   public List<JzJyDz>  getJzjydzName(Map<String,String> map) {
		return  jzjydzmapper.getJzjydzName(map);
	}

}
